import time
count = 10**6
nums = []
nums_1 = []
t0 = time.time()
for i in range(count):
    nums.append(i)
nums.reverse()
t1 = time.time()
print("算法1：", str(t1-t0))

t0 = time.time()
for i in range(count):
    nums_1.insert(0, i)
t1 = time.time()
print("算法2：", str(t1-t0))
